window.onload=function (e) {
    if (sessionStorage.getItem('userName') == null || sessionStorage.getItem('workerNo') == null || sessionStorage.getItem('userName') == '' ||
        sessionStorage.getItem('workerNo') == '') {
        layer.msg("请先验证您的职工信息...")
        setTimeout(function () {
            location.href = '/toLogin';
        }, 1000);
    }
}